//创建页面上下文
import { createContext } from "react";
interface AppContextType {
  isActive: boolean; //是否切换状态
  toggleStyle: () => void; //切换状态方法
}

//导出并提供默认值
export const AppContext = createContext<AppContextType>({
  isActive: false,
  toggleStyle: () => {},
});
